package com.jch.helloworld.configBeans.lifeCycle;

public class BeanDemo {

    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "BeanDemo{" +
                "content='" + content + '\'' +
                '}';
    }

    // 初始化 bean 方法
    public void initBeanDemo(){
        System.out.println("init BeanDemo !");
    }

    // 销毁 bean 方法
    public void destroyBeanDemo(){
        System.out.println("destroy BeanDemo !");
    }

}
